﻿using AutoMapper;
using B.S.Business.Domain;
using B.S.Business.Write.API.Applications.Command;
using B.S.Business.Write.API.Applications.Command.SupplierCommand;


namespace B.S.Business.Write.API
{
    public class MapperProfile : Profile
    {
        public MapperProfile()
        {
            CreateMap<PurchaseAddCommand, Purchase>().ReverseMap();

            CreateMap<SupplierAddCommand, SupplierApp>().ReverseMap();

            CreateMap<PurchaseUpdCommand, Purchase>().ReverseMap();

            CreateMap<SupplierUpdCommand, SupplierApp>().ReverseMap();
        }
    }
}
